﻿namespace Zhaoxi.TakeaWay.App.Utility
{
    /// <summary>
    /// 返回结果的统一格式
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ApiDataResult<T>
    {
        /// <summary>
        /// 服务器是否是正常响应
        /// </summary>
        public bool Success { get; set; }

        /// <summary>
        /// 结果信息描述
        /// </summary>
        public string? Message { get; set; }

        /// <summary>
        /// 返回的结果集
        /// </summary>
        public T? Data { get; set; }
    }
}
